<?
/**
* Copyright (c) 2002-2007 BioWare Corp.
* http://www.bigdaddymonitor.org
*
* This file is part of the BigDaddy Monitoring
* program. It is free software distributed under
* the terms of the BSD License. It is ditributed
* in the hopes that it will be useful, but
* WITHOUT ANY WARRANTY; without event the implied
* warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE.
*
* The BSD License is available from:
* http://www.opensource.org/licenses/bsd-license.php
**/
?>

<div id="theme_app_title">

<?
if (!$App->sTitle)
{
    $App->sTitle = "BioWare Edmonton";
}

    if (count($App->aOptionHeaders)>0)
    {
        if ($_COOKIE["theme_treeview"] == "hidden")
        {
            $sTVIcon = THEME_DIR."/images/show_app.gif";
        }
        else
        {
            $sTVIcon = THEME_DIR."/images/hide_app.gif";
        }
        
        ?>
        
        <a href="#" onclick="theme_ToggleTreeview();" >
            <img src="<?=$sTVIcon;?>" id="theme_treeview_anchor">
        </a>
        <?
    }

    if ($App->sHome)
    {
        ?>
        <a href="<?=$App->sHome;?>" style="font-size: 11pt; font-weight: bold; font-family: Arial;" 
        <?
        if (count($App->aOptionHeaders)==0)
        {
            ?>
            style="padding-left: 5px;"
            <?
        }
        ?>
        >
        
        
            <?=$App->sTitle;?>
        </a>
        <?
    }
    else
    {
        ?>
        <div id="theme_app_title_text" class="text_link" 
        <?
        if (!is_array($App->aOptionHeaders))
        {
            ?>
            style="padding-left: 5px;"
            <?
        }
        ?>
        >
            <?=$App->sTitle;?>
        </div>
        <?
    }
    ?>
    
        <img src="<?=THEME_DIR;?>/images/app_title_tab_cap.gif" class="theme_app_title_cap"><br />

</div>

<div id="theme_horizontal_split">
    <!-- -->
</div>
